package org.shj.spark.util

import java.text.SimpleDateFormat
import java.util.{Calendar, Date}

/**
  *
  * @author Shen Huang Jian
  * date 2019-04-16 14:42
  */
object DateUtils {
  val format = "yyyy-MM-dd"
  val dateFormat = new SimpleDateFormat(format)

  val oneDay = 24 * 60 * 60 * 1000

  def convertToDate(dateStr: String) : Date = {
    dateFormat.parse(dateStr)
  }

 

}
